//
//  TestCell.m
//  XTeng
//
//  Created by 周成龙 on 16/8/15.
//  Copyright © 2016年 ZCL. All rights reserved.
//

#import "TestCell.h"

#import "TestButton.h"

@interface TestCell ()

@property (weak, nonatomic) IBOutlet UILabel *classNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *areaLabel;
@property (weak, nonatomic) IBOutlet TestButton *stateButton;

@end

@implementation TestCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setRow:(NSInteger)row
{
    switch (row) {
        case 0:{
            self.stateButton.type = TestButtonTypeNone;
        }
            break;
        case 1:{
            self.stateButton.type = TestButtonTypeCountDown;
        }
            break;
        case 2:{
            self.stateButton.type = TestButtonTypeToday;
        }
            break;
            
        default: {
            self.stateButton.type = TestButtonTypeEnd;
        }
            break;
    }
}

@end
